home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / files / tcpip / amiga / asrc29p.lha / slip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-29  |  1.4 KB  |  41 lines

  1. #ifndef    SLIP_ALLOC
  2. #include "global.h"
  3.  
  4. #define SLIP_MAX 5        /* Maximum number of slip channels */
  5.  
  6. /* SLIP definitions */
  7. #define    SLIP_ALLOC    40    /* Receiver allocation increment */
  8.  
  9. #define    FR_END        0300    /* Frame End */
  10. #define    FR_ESC        0333    /* Frame Escape */
  11. #define    T_FR_END    0334    /* Transposed frame end */
  12. #define    T_FR_ESC    0335    /* Transposed frame escape */
  13.  
  14. /* Slip protocol control structure */
  15. struct slip {
  16.     struct iface *iface;
  17.     char escaped;        /* Receiver State control flag */
  18.     struct mbuf *rbp;    /* Head of mbuf chain being filled */
  19.     struct mbuf *rbp1;    /* Pointer to mbuf currently being written */
  20.     char *rcp;        /* Write pointer */
  21.     int16 rcnt;        /* Length of mbuf chain */
  22.     struct mbuf *tbp;    /* Transmit mbuf being sent */
  23.     int16 errors;        /* Receiver input errors */
  24.     int type;        /* Protocol of input */
  25.     int (*send)(int,struct mbuf *);    /* Routine to send mbufs */
  26.     char (*get)(int);    /* Routine to fetch input chars */
  27.     struct iface *kiss[16];        /* Kiss mode sub-addresses. AX25 only - G1EMM */
  28.     struct slcompress *slcomp;    /* TCP header compression table */
  29.     struct pppctl *pppio;    /* Control structure for PPP interfaces */
  30. };
  31. extern struct slip Slip[];
  32.  
  33. /* In slip.c: */
  34. void asy_rx __ARGS((int dev,void *p1,void *p2));
  35. void asytxdone __ARGS((int dev));
  36. int slip_raw __ARGS((struct iface *iface,struct mbuf *data));
  37. int slip_send __ARGS((struct mbuf *bp,struct iface *iface,int32 gateway,int prec,
  38.     int del,int tput,int rel));
  39.  
  40. #endif    /* SLIP_ALLOC */
  41.